package com.ruoyi.quartz.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.quartz.domain.YongyouXsht;

/**
 * 销售合同Service接口
 * 
 * @author SYF
 * @date 2025-04-17
 */
public interface IYongyouXshtService 
{
    /**
     * 查询销售合同
     * 
     * @param orderdetailsFirstupcode 销售合同主键
     * @return 销售合同
     */
    public YongyouXsht selectYongyouXshtByOrderdetailsFirstupcode(String orderdetailsFirstupcode);

    /**
     * 查询销售合同列表
     * 
     * @param yongyouXsht 销售合同
     * @return 销售合同集合
     */
    public List<YongyouXsht> selectYongyouXshtList(YongyouXsht yongyouXsht);

    /**
     * 新增销售合同
     * 
     * @param yongyouXsht 销售合同
     * @return 结果
     */
    public int insertYongyouXsht(YongyouXsht yongyouXsht);

    /**
     * 修改销售合同
     * 
     * @param yongyouXsht 销售合同
     * @return 结果
     */
    public int updateYongyouXsht(YongyouXsht yongyouXsht);

    /**
     * 批量删除销售合同
     * 
     * @param orderdetailsFirstupcodes 需要删除的销售合同主键集合
     * @return 结果
     */
    public int deleteYongyouXshtByOrderdetailsFirstupcodes(String[] orderdetailsFirstupcodes);

    /**
     * 删除销售合同信息
     * 
     * @param orderdetailsFirstupcode 销售合同主键
     * @return 结果
     */
    public int deleteYongyouXshtByOrderdetailsFirstupcode(String orderdetailsFirstupcode);

    public int deleteYongyouXshtByDate(String startTime,String endTime);

    public List<YongyouXsht> selectYongyouXshtByDate(String createTime);

    public int clearXsht();

    public List<Map<String,Object>> getYjgXsht(String year);

    public List<Map<String,Object>> getOtherXsht(String year);

    public List<Map<String,Object>> getDetailXsht(String year);

    public List<Map<String,Object>> selectJianLan(String year,String day);

    public void impAraeCustomers();

    public void statAraeCustomers();
}
